package com.epoch;

import com.epoch.utils.Base;

import java.io.UnsupportedEncodingException;

/**
 * @author admin
 */
public class EnCode {
    public static void main(String[] args) throws UnsupportedEncodingException {
        String str = "1234561";
//        Base base = new Base();
        for (int i = 0; i <= 9; i++) {
            str = str + i;
            System.out.println("加密前"+str);
            String encode = Base.encode(str);
            System.out.println("加密后："+encode);
            String decode = Base.decode(encode);
            System.out.println("解密后："+decode);
            str = "1234561";
        }


    }
}
